<?php
	/**
 	 * System logs class
 	 */
	class SystemLogsController extends Controller
	{
		public $page_title = LANG_LOGS;
		public $layout = 'main';
		public $module = 'administration';
		public $helpers = array ('html', 'htmlx', 'toolbars', 'grids|index');
		public $javascript = array('calendar/dateselector|index', 'calendar/popup_lib|index');
		public $name = 'systemlogs';
		public $use_logging = false;
		
		/**
		 * Gets system logs list
		 */	
		function Index()
		{
			$out_parameters = array('num_rows');
			$this->data[$this->name] = $this->controller_model->ListItems($this->request->get, 'sp_system_logs_list_paged', $out_parameters);
			$this->data['num_rows'] = $out_parameters['num_rows'];
		}
		
		/**
		 * View an existing system log record
		 *
		 * @param bigint $id system log id
		 */			
		function View($id)
		{
			$this->data[$this->name] = $this->controller_model->Get($id);
		}	
	}
?>